package com.ld.security.shop.blog.modules.cms.api;

import com.ld.security.common.tomcat.base.api.*;

import com.ld.security.shop.blog.modules.cms.entity.CmsContent;

import io.swagger.annotations.Api;
import org.apache.shiro.SecurityUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags="内容Api管理")
@RequestMapping("/api/cmsContent")
public class  CmsContentApi extends  SuperApi<CmsContent> {


    @RequestMapping("/getNowUser")
    public Object getNowUser(){
        return SecurityUtils.getSubject().getPrincipal();

    }


}
